package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:54
 * @Description: TODO
 */
public class SchoolStatistics {
    private Double attendanceRate;

    private Double standardRate;

    private Double concentrationRate;

    private Double activityRate;

    public void setAttendanceRate(Double attendanceRate) {
        this.attendanceRate = attendanceRate;
    }

    public void setStandardRate(Double standardRate) {
        this.standardRate = standardRate;
    }

    public void setConcentrationRate(Double concentrationRate) {
        this.concentrationRate = concentrationRate;
    }

    public void setActivityRate(Double activityRate) {
        this.activityRate = activityRate;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.SchoolStatistics))
            return false;
        com.caipin.domain.web.SchoolStatistics other = (com.caipin.domain.web.SchoolStatistics)o;
        if (!other.canEqual(this))
            return false;
        Object this$attendanceRate = getAttendanceRate(), other$attendanceRate = other.getAttendanceRate();
        if ((this$attendanceRate == null) ? (other$attendanceRate != null) : !this$attendanceRate.equals(other$attendanceRate))
            return false;
        Object this$standardRate = getStandardRate(), other$standardRate = other.getStandardRate();
        if ((this$standardRate == null) ? (other$standardRate != null) : !this$standardRate.equals(other$standardRate))
            return false;
        Object this$concentrationRate = getConcentrationRate(), other$concentrationRate = other.getConcentrationRate();
        if ((this$concentrationRate == null) ? (other$concentrationRate != null) : !this$concentrationRate.equals(other$concentrationRate))
            return false;
        Object this$activityRate = getActivityRate(), other$activityRate = other.getActivityRate();
        return !((this$activityRate == null) ? (other$activityRate != null) : !this$activityRate.equals(other$activityRate));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.SchoolStatistics;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $attendanceRate = getAttendanceRate();
        result = result * 59 + (($attendanceRate == null) ? 43 : $attendanceRate.hashCode());
        Object $standardRate = getStandardRate();
        result = result * 59 + (($standardRate == null) ? 43 : $standardRate.hashCode());
        Object $concentrationRate = getConcentrationRate();
        result = result * 59 + (($concentrationRate == null) ? 43 : $concentrationRate.hashCode());
        Object $activityRate = getActivityRate();
        return result * 59 + (($activityRate == null) ? 43 : $activityRate.hashCode());
    }

    public String toString() {
        return "SchoolStatistics(attendanceRate=" + getAttendanceRate() + ", standardRate=" + getStandardRate() + ", concentrationRate=" + getConcentrationRate() + ", activityRate=" + getActivityRate() + ")";
    }

    public Double getAttendanceRate() {
        return this.attendanceRate;
    }

    public Double getStandardRate() {
        return this.standardRate;
    }

    public Double getConcentrationRate() {
        return this.concentrationRate;
    }

    public Double getActivityRate() {
        return this.activityRate;
    }
}

